package com.freecloud.bittorrent.demo.job;

import cn.hutool.core.date.DateUtil;
import com.freecloud.bittorrent.demo.DownloadBTFileMain;
import lombok.extern.slf4j.Slf4j;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

/**
 * @Author: maomao
 * @Date: 2021/12/5 11:17 PM
 */
@Slf4j
public class ScheduleJoinDHT implements Job {

    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        log.info("开始定时任务：{}", DateUtil.now());
        DownloadBTFileMain.dhtServer.joinDHT();
    }
}
